<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <base href="<?php echo base_url(); ?>"/>
    <title><?php echo $title; ?></title>
	<link href="style/base.css" rel="stylesheet" type="text/css" />
	<link href="style/common.css" rel="stylesheet" type="text/css" />
	<link href="style/star.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>

    <script type="text/javascript" src="js/Common.js"></script>
    <script type="text/javascript" src="js/Validation.js"></script>
	<!--[if IE 6]>
		<script type="text/javascript" language="javascript" src="js/ie6/DD_belatedPNG_0.0.8a-min.js"></script>
		<script type="text/javascript" language="javascript">
			DD_belatedPNG.fix('.star_top_logo img,.footer_logo img,.star_top_txt img');
		</script>
	<![endif]-->
    <script type="text/javascript">
        $(function(){
            $('#submitApply').bind('click',submitApply);
            $('#realname').bind('blur',checkRealname);
            $('#weixin').bind('blur',checkWeibo);
        })


        function submitApply()
        {
            if(checkRealname()!=true)
                return false;
            if(checkWeibo()!=true)
                return false;

            var realname = $("#realname").val();
            var weixin = $("#weixin").val();
            var wid = $("#wid").val();
            var params = {realname:realname,weixin:weixin,wid:wid};
            $.ajax({
                type:"post",
                url:"index.php/interview/addApply",
                data:params,
                dataType:"json",
                success:function(data){
                    if(data.statusCode == 1){
                        alert(data.msg);
                    }else if(data.statusCode == 2){
                        alert(data.msg);
                        window.location =  "index.php/login/login"
                    }else{
                        alert(data.msg);
                    }
                }
            });
        }
        function checkRealname()
        {
            var realname = $("#realname").val();
            if(IsEmpty(realname)){
                SetError('realname','真实姓名不能为空');
                return false;
            }
            SetOK('realname');
            return true;
        }

        function checkWeibo()
        {
            var weixin = $("#weixin").val();
            if(IsEmpty(weixin)){
                SetError('weixin','微信账号不能为空');
                return false;
            }
            SetOK('weixin');
            return true;
        }

    </script>
</head>
<body>
<!-- head S-->
<?php
include 'header.php';
?>
<!-- head E-->

<!-- 顶部 S -->
<?php
include 'star_man.php';
?>
<!-- 顶部 E -->

<!-- 每日之星选项卡 S -->
<?php
include 'star_nav.php';
?>
<!-- 每日之星选项卡 E -->

<!-- 每日之星报名 S -->
<div class="star_baoming">
	<div class="w1100">
		<!--报名 S-->
		<div class="star_baoming_l">
			<h3 class="btn_blue">立即报名</h3>
			<div class="star_baoming_cnt">
				<ul class="star_baoming_btn">
					<li><a href="index.php/manage/userinfo" class="btn_wszl" <?php if($checkData){ ?> style="background-position:0 -105px;"<?php } ?>>完善资料</a><span>请完善个人资料</span></li>
					<li><a href="index.php/manage/malbum" class="btn_cjxc" <?php if($checkAlbum){ ?> style="background-position:0 -105px;"<?php } ?>>创建相册</a><span>请上传展示照片</span></li>
				</ul>
				<div class="star_baoming_form">
					<form action="" method="post">
						<div class="form_item">
							<h4>真实姓名</h4>
							<input type="text" name="" id="realname" class="form_text" value="<?php if(isset($userinfo['realname'])) echo $userinfo['realname'];?>"/>
						</div>
						<div class="form_item">
							<h4>微信账号</h4>
							<input type="text" name="" id="weixin" class="form_text" value="<?php if(isset($weibo['url'])) echo $weibo['url'];?>"/>
						</div>
						<p>工作人员将通过微信对您进行在线采访</p>
						<div class="form_btn_wrap">
                            <input type="hidden" value="2" id="wid"/>
							<input type="button" name=""  id="submitApply" class="form_btn" value=""/>
						</div>
					</form>
				</div>
			</div>
		</div>
		<!--报名 E-->
		
		<!--注意事项 S-->
		<div class="star_baoming_r">
			<dl>
				<dt class="btn_blue">报名要求</dt>
				<dd>1、完善个人基本资料、真实无误<br />2、上传不低于6张形象展示照片<br />3、自拍、像素低、无法看清人物面部照片无效</dd>
			</dl>
			<dl>
				<dt class="btn_blue">访谈流程</dt>
				<dd>1、在线报名，等待审核<br />2、工作人员通过微信等联系方式与您联系<br />3、访谈后工作人员进行文章编辑，等待展示</dd>
			</dl>
			<dl>
				<dt class="btn_blue">展示平台</dt>
				<dd>网站首页大屏广告优先展示<br />星探麻豆官方微信主页每日推送置顶展示<br />星探麻豆官方微博主页每日推送置顶展示</dd>
			</dl>
		</div>
		<!--注意事项 E-->
	</div>
</div>
<!-- 每日之星报名 E -->
<!-- 底部 S -->
<?php include 'footer.php';?>
<!-- 底部 E -->
</body>
</html>
